﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.Utils.Extension
{
    public static class DateTimeExtension
    {
        public static DateTime GetUtcTimeAssumingZone(this DateTime date, string timeZoneID)
        {
            return TimeZoneInfo.ConvertTimeToUtc(date, TimeZoneInfo.FindSystemTimeZoneById(timeZoneID));
        }
    }
}
